﻿@{
    ViewBag.Title = "Listar";
}
@model IEnumerable<Cliente_DozenContext.Cliente_Cliente>


<h2>Listar</h2>
<p> @ViewData["a"]</p>
<br /><p>@ViewBag.Pico</p>
@(Html.Telerik().Grid(Model)
        .Name("Grid")
        .Columns(columns =>
        {
            columns.Bound(o => o.Cliente_ClienteSexo).Width(100);
            columns.Bound(o => o.Cliente_ClienteRut).Width(200);
            columns.Bound(o => o.Cliente_ClienteNombre);
            
        })
        .DataBinding(dataBinding => 
        {
            dataBinding.Server().Select("Listar", "Cliente");
            dataBinding.Ajax().Select("_Listar", "Cliente");
        })
        .Scrollable(scrolling => scrolling.Enabled(true))
        .Sortable(sorting => sorting.Enabled(true))
        .Pageable(paging => paging.Enabled(true))
        .Filterable(filtering => filtering.Enabled(true))
        .Groupable(grouping => grouping.Enabled(true))
        .Footer(true)
) 
